const http = require('http');
const fs = require('fs')

let sever = http.createServer(function (req,res) {
    console.log('请求主页')
    res.header("Access-Control-Allow-Credentials", "true")
    res.header("Access-Control-Allow-Origin", "*")
    res.sendFile("./dist/index.html")
});

sever.listen(8000,'0.0.0.0', () => {
console.log('start at port 8000')
}
);



